package com.example.manage_dzensaas.pojo.entity.db2;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;

/**
 * 销售单明细限制表
 * @TableName agent_sales_detail_restriction
 */
@TableName(value ="agent_sales_detail_restriction")
public class AgentSalesDetailRestriction {
    /**
     * 限制配置ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 销售单明细ID
     */
    @TableField(value = "sales_detail_id")
    private Long salesDetailId;

    /**
     * 卡卷ID
     */
    @TableField(value = "card_id")
    private Long cardId;

    /**
     * 限制key:
     *   1-开通类型,
     *   2-有效期,
     *   3-选择商城,
     *   4-用户端卡券名称,
     *   5-选择品类,
     *   6-商品类目限制,
     *   7-电影城市限制
     */
    @TableField(value = "restriction_key")
    private Integer restrictionKey;

    /**
     * 限制value
     */
    @TableField(value = "restriction_value")
    private String restrictionValue;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 限制配置ID
     */
    public Long getId() {
        return id;
    }

    /**
     * 限制配置ID
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 销售单明细ID
     */
    public Long getSalesDetailId() {
        return salesDetailId;
    }

    /**
     * 销售单明细ID
     */
    public void setSalesDetailId(Long salesDetailId) {
        this.salesDetailId = salesDetailId;
    }

    /**
     * 卡卷ID
     */
    public Long getCardId() {
        return cardId;
    }

    /**
     * 卡卷ID
     */
    public void setCardId(Long cardId) {
        this.cardId = cardId;
    }

    /**
     * 限制key:
1-开通类型,
2-有效期,
3-选择商城,
4-用户端卡券名称,
5-选择品类,
6-商品类目限制,
7-电影城市限制
     */
    public Integer getRestrictionKey() {
        return restrictionKey;
    }

    /**
     * 限制key:
1-开通类型,
2-有效期,
3-选择商城,
4-用户端卡券名称,
5-选择品类,
6-商品类目限制,
7-电影城市限制
     */
    public void setRestrictionKey(Integer restrictionKey) {
        this.restrictionKey = restrictionKey;
    }

    /**
     * 限制value
     */
    public String getRestrictionValue() {
        return restrictionValue;
    }

    /**
     * 限制value
     */
    public void setRestrictionValue(String restrictionValue) {
        this.restrictionValue = restrictionValue;
    }

    /**
     * 创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 更新时间
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 更新时间
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}